package com.css.fxfzypg.modules.baseData.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import com.css.fxfzypg.modules.baseData.entity.PeoEntity;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author y1fan
 * @create 2022-08-25 16:24
 */

@Data
public class PeoVO implements IExcelDataModel, IExcelModel {
    @Excel(name = "省")
    @NotBlank(message = "缺失")
    private String province;
    @Excel(name = "市")
    @NotBlank(message = "缺失")
    private String city;
    @Excel(name = "区（县）")
    @NotBlank(message = "缺失")
    private String prefecture;
    @Excel(name = "总人口（人）")
    @NotNull(message = "缺失")
    private String peoTotal;
    @Excel(name = "户均人口（人/户）")
    @NotNull(message = "缺失")
    private BigDecimal peoAvgHouse;
    @Excel(name = "人均住房建筑面积（平方米/人）")
    @NotNull(message = "缺失")
    private BigDecimal peoAvgArea;

    private Integer rowNum;
    private String errorMsg;
}
